package com.ayuan.blog.common;

import org.durcframework.core.expression.ExpressionQuery;

import java.util.List;

public interface CrudServiceInterface<Entity> {
	
	  public Entity save(Entity entity);

	  public Entity update(Entity entity);

	  public void del(Entity entity);
	  
	  public Entity get(Object id);

	  public List<Entity> find(ExpressionQuery query);

	  public int findTotalCount(ExpressionQuery query);
}
